package com.fusion;

import com.fusion.core.ResourceSingelton;

import java.util.Properties;


/**
 * @author SwethaShivakumar 
 * Project: fusion
 * Date: Feb 18, 2009
 * URL: http://fusionwiki.co.cc
 * Mail Me At: shiva@fusionproject.co.cc
 */
public class Version {
    public static final String VERSION="1.0";
    public static final int BUILD_NUMBER;
    public static final int PROTOCOL_VERSION = 3;

    static {
        int n = 0;
        try {
            Properties p = new Properties();
            p.load(ResourceSingelton.getRl().getResourceStream("build.properties"));
            n = Integer.parseInt(p.get("build.number").toString());
        } catch (Exception e) {
            System.err.println("Could not load buildnumber: "+e);
        } finally {
            BUILD_NUMBER = n;
        }
    }
}